package com.gopay.common.domain.riskcontrol;
import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * @author  gaocl
 * 快捷风险模型开关表
 * Created by gaocl on 2017/11/17.
 */
@Entity
@Table(name = "RC_QUICKPAY_MODEL_SWITCH")
public class RcQuickpayModelSwitch extends BaseEntity {

    /**
     * 主键
     */
    @Id
    @Column(name = "ID")
    private String id;
    /**
     * 模型类型 D-借记 C-贷记
     */
    @Column(name = "MODEL_TYPE")
    private String modelType;
    /**
     * 状态 01-开启 02-关闭
     */
    @Column(name = "STAT")
    private String stat;
    /**
     * 创建时间
     */
    @Column(name = "CREATED_TS")
    private Date createdTs;

    /**
     * 最后操作时间
     */
    @Column(name = "LAST_UPD_TS")

    private Date lastUpdTs;
    /**
     * 最后操作用户ID
     */
    @Column(name = "LAST_UPD_USER_ID")
    private String lastUpdUserId;
    /**
     * 乐观锁版本号
     */
    @Version
    @Column(name = "VERSION", nullable = false, precision = 22, scale = 0)
    private Integer version;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getModelType() {
        return modelType;
    }

    public void setModelType(String modelType) {
        this.modelType = modelType;
    }

    public String getStat() {
        return stat;
    }

    public void setStat(String stat) {
        this.stat = stat;
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getLastUpdUserId() {return lastUpdUserId;}

    public void setLastUpdUserId(String lastUpdUserId) {this.lastUpdUserId = lastUpdUserId;}
}
